package com.zuoye.zuoye6;

public class Auto {
    private String name;
    private int length;
    private double money;

    public Auto() {
    }

    public Auto(String name, int length, double money) {
        this.name = name;
        this.length = length;
        this.money = money;
    }
   // public void show(){
      //  System.out.println("车牌"+name+","+"车长度："+length+","+"价格："+money);
   // }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "Auto{" +
                "车牌='" + name + '\'' +
                ", 车长=" + length +
                ", 价格=" + money +
                '}';
    }
}
